package com.ruoyi.mobile.mapper;

import java.time.LocalDate;
import java.util.List;
import com.ruoyi.mobile.domain.HuaweiHealthMonthStat;
import com.ruoyi.mobile.domain.HuaweiHealthWeekStat;
import com.ruoyi.mobile.model.vo.HuaweiHealthMonthStatVo;
import com.ruoyi.mobile.model.vo.HuaweiHealthWeekStatVo;
import org.apache.ibatis.annotations.Param;

/**
 * 华为健康每月统计数据Mapper接口
 * 
 * @author ruoyi
 * @date 2023-05-02
 */
public interface HuaweiHealthMonthStatMapper 
{
    /**
     * 查询华为健康每周统计数据列表
     *
     * @param huaweiHealthMonthStat 华为健康每周统计数据
     * @return 华为健康每周统计数据集合
     */
    public List<HuaweiHealthMonthStat> selectHuaweiHealthMonthStatList(HuaweiHealthMonthStat huaweiHealthMonthStat);

    public List<HuaweiHealthMonthStatVo> selectHuaweiHealthMonthStatVoList(HuaweiHealthMonthStat huaweiHealthMonthStat);

    public List<HuaweiHealthMonthStatVo> selectHuaweiHealthLastMonthStatVoList(@Param("statStartDate") LocalDate statStartDate, @Param("statEndDate") LocalDate statEndDate);

    /**
     * 新增华为健康每周统计数据
     *
     * @param huaweiHealthMonthStat 华为健康每周统计数据
     * @return 结果
     */
    public int insertHuaweiHealthMonthStat(HuaweiHealthMonthStat huaweiHealthMonthStat);


    public int delByUserIdAndDate(@Param("userId") Integer userId, @Param("statStartDate") LocalDate statStartDate, @Param("statEndDate") LocalDate statEndDate);

}
